class WeatherModel {
  List<Weather>? weather;

  WeatherModel({this.weather});

  WeatherModel.fromJson(Map<String, dynamic> json) {
    if (json['weather'] != null) {
      weather = <Weather>[];
      json['weather'].forEach((v) {
        weather!.add(new Weather.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.weather != null) {
      data['weather'] = this.weather!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Weather {
  String? code;
  String? name;
  String? val;
  String? portalAt;
  int? baseTypeId;

  Weather({this.code, this.name, this.val, this.portalAt, this.baseTypeId});

  Weather.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    name = json['name'];
    val = json['val'];
    portalAt = json['portalAt'];
    baseTypeId = json['baseTypeId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['name'] = this.name;
    data['val'] = this.val;
    data['portalAt'] = this.portalAt;
    data['baseTypeId'] = this.baseTypeId;
    return data;
  }
}
